Learn R Programming

SeuratObject (version 5.2.0)

[[<-,Seurat: Add Subobjects

Description

Add subobjects containing expression, dimensional reduction, or other containerized data to a Seurat object. Subobjects can be accessed with [[ and manipulated directly within the Seurat object or used independently

Usage

# S4 method for Seurat,character,missing,Assay
[[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,Assay5 [[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,DimReduc [[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,Graph [[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,Neighbor [[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,SeuratCommand [[(x, i, j, ...) <- value

# S4 method for Seurat,character,missing,SpatialImage [[(x, i, j, ...) <- value

Value

x with value added as i

Arguments

x

A Seurat object

i

Name to add subobject as

j

Ignored

...

Ignored

value

A valid subobject (eg. a v3 or v5 assay, or a dimensional reduction)

See Also

See here for pulling subobjects using [[, here for adding metadata with [[<-, and here for removing subobjects and cell-level meta data with [[<-

Seurat object, validity, and interaction methods $.Seurat(), Seurat-class, Seurat-validity, [[.Seurat(), [[<-,Seurat,NULL, dim.Seurat(), dimnames.Seurat(), merge.Seurat(), names.Seurat(), subset.Seurat()